GTK_DEBUG_CONSTRAINTS = 1 << 15,
GTK_DEBUG_BUILDER_OBJECTS = 1 << 16,
GTK_DEBUG_A11Y = 1 << 17,
-} GtkDebugFlag;
+} GtkDebugFlags;
#ifdef G_ENABLE_DEBUG
#endif /* G_ENABLE_DEBUG */
GDK_AVAILABLE_IN_ALL
-guint gtk_get_debug_flags (void);
+GtkDebugFlags gtk_get_debug_flags (void);
GDK_AVAILABLE_IN_ALL
-void gtk_set_debug_flags (guint flags);
+void gtk_set_debug_flags (GtkDebugFlags flags);
G_END_DECLS
#ifndef G_OS_WIN32
uid_t ruid, euid, suid; /* Real, effective and saved user ID's */
gid_t rgid, egid, sgid; /* Real, effective and saved group ID's */
-
+
#ifdef HAVE_GETRESUID
if (getresuid (&ruid, &euid, &suid) != 0 ||
getresgid (&rgid, &egid, &sgid) != 0)
{
if (pre_initialized)
g_warning ("gtk_disable_setlocale() must be called before gtk_init()");
-
+
do_setlocale = FALSE;
}
NULL);
}
-guint
+GtkDebugFlags
gtk_get_display_debug_flags (GdkDisplay *display)
{
int i;
for (i = 0; i < N_DEBUG_DISPLAYS; i++)
{
if (debug_flags[i].display == display)
- return debug_flags[i].flags;
+ return (GtkDebugFlags)debug_flags[i].flags;
}
return 0;
}
void
-gtk_set_display_debug_flags (GdkDisplay *display,
- guint flags)
+gtk_set_display_debug_flags (GdkDisplay *display,
+ GtkDebugFlags flags)
{
int i;
/**
* gtk_get_debug_flags:
*
- * Returns the GTK debug flags.
+ * Returns the GTK debug flags that are currently active.
*
* This function is intended for GTK modules that want
* to adjust their debug output based on GTK debug flags.
*
* Returns: the GTK debug flags.
*/
-guint
+GtkDebugFlags
gtk_get_debug_flags (void)
{
if (gtk_get_any_display_debug_flag_set ())
/**
* gtk_set_debug_flags:
+ * @flags: the debug flags to set
*
* Sets the GTK debug flags.
*/
void
-gtk_set_debug_flags (guint flags)
+gtk_set_debug_flags (GtkDebugFlags flags)
{
gtk_set_display_debug_flags (gdk_display_get_default (), flags);
}